package com.example.androidproject.ui.base;

import com.example.androidproject.net.IdeaApiService;
import com.example.androidproject.net.RetrofitHelper;
import com.hyg.base.ui.base.BasePresenter;
import com.hyg.base.view.BaseView;

/**
 * FileName: IBasePresenter
 * Author: huangyuguang
 * Date: 2022/5/11
 */
public abstract class IBasePresenter<V extends BaseView> extends BasePresenter<V> {

    protected IdeaApiService mApiService = RetrofitHelper.getApiService();

    public IBasePresenter(V view) {
        super(view);
    }


//    public void addSubscription() {
//        mApiService.login(getParameters())
//                .compose(mView.rxSchedulerHelper( true))
//                .subscribe(new APICallback<LoginResponse>() {
//                    @Override
//                    public void onSuccess(LoginResponse response) {
//                        showToast("登录成功");
//                    }
//
//                    @Override
//                    public void onFail(String message) {
//                        super.onFail(message);
//
//                    }
//                });
//    }
}